package com.magicborrow.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.magicborrow.R;

import java.util.ArrayList;

/**
 * Created by ghost on 16/3/28.
 */
public class SearchEmptyAdapter extends RefreshAdapter{


    public SearchEmptyAdapter(ArrayList<String> data) {
        super(data);
    }

    @Override
    public RecyclerView.ViewHolder onCreateItem(ViewGroup parent, int viewType) {
        return new PublishedRentViewHolder(LayoutInflater.from(context).inflate(R.layout.search_empty_item, null));
    }

    @Override
    public void onBindItem(RecyclerView.ViewHolder holder, int position) {

    }

    public class PublishedRentViewHolder extends RecyclerView.ViewHolder {
        private ImageView pic;
        private TextView title;
        private TextView price;
        private ImageView editor;

        public PublishedRentViewHolder(View view) {
            super(view);
            pic = (ImageView) view.findViewById(R.id.pic);
            title = (TextView) view.findViewById(R.id.title);
            price = (TextView) view.findViewById(R.id.price);
            editor = (ImageView) view.findViewById(R.id.editor);
        }
    }

}
